package com.wind.taobao.api.trade.shipping.rest
{
	import com.wind.taobao.api.trade.shipping.convert.ShippingConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.logistics.orders.get Response
	 * @author fxy
	 *
	 */
	public class LogisticsOrdersGetResponse extends TaobaoListResponse
	{
		public var ship:ArrayCollection;

		public function LogisticsOrdersGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initShipping();
		}

		private function initShipping():void
		{
			if (body != null && this.isSuccess)
			{
				if (this.format == "xml")
				{

				}
				else
				{
					if (body["rsp"].hasOwnProperty("ship"))
						ship=ShippingConvert.convertShippings(body["rsp"]["ship"]);
				}
			}

		}
	}
}